from sys import argv
from os.path import exists 

script,from_file,to_file=argv 

print(f"copying from {from_file} to {to_file}")

indata=open(from_file).read()

print(f"the input file is {len(indata)} bytes long")

print(f"Does the output file exist? {exists(to_file)}")
print("Ready,hit RETURE to continus,CTRL-C to abort.")

input()

out_file=open(to_file,'w')
out_file.write(indata)

print("alright,all done.")

out_file.close()
